home *** CD-ROM | disk | FTP | other *** search
- *** bounds.c Mon Oct 11 15:01:20 1993
- --- bounds.c.frac Mon Oct 11 14:52:05 1993
- ***************
- *** 234,239 ****
- --- 234,256 ----
- SetIfGreater(old[HIGH][Z], new[HIGH][Z]);
- }
-
- + /*
- + * Enlarge bounding box so it contains the sphere centered at 'Center' with
- + * radius 'radius'.
- + */
- + void
- + BoundsEnlargeSphere(bounds, Center, radius)
- + Float bounds[2][3], radius;
- + Vector *Center;
- + {
- + SetIfLess(bounds[LOW][X], Center->x - radius);
- + SetIfLess(bounds[LOW][Y], Center->y - radius);
- + SetIfLess(bounds[LOW][Z], Center->z - radius);
- + SetIfGreater(bounds[HIGH][X], Center->x + radius);
- + SetIfGreater(bounds[HIGH][Y], Center->y + radius);
- + SetIfGreater(bounds[HIGH][Z], Center->z + radius);
- + }
- +
- void
- BoundsPrint(box, fp)
- Float box[2][3];
-